/*
 * Name        : TaskErrorCode.java
 * Classes     : TaskErrorCode
 * Version     : 1.0
 * Date        : 2013-09-06
 *
 * Copyright 2013 CMCC.  All rights reserved.
 * This material, including documentation and any related computer
 * programs, is protected by copyright controlled by CMCC.  All
 * rights are reserved.  Copying, including reproducing, storing,
 * adapting or translating, any or all of this material requires the
 * prior written consent of CMCC.  This material also contains
 * confidential information which may not be disclosed to others
 * without the prior written consent of CMCC.
 */

package com.xgkj.diyiketang.http.engine;

/**
 * Class Name  : TaskResultCode
 * Author      : Tu Yuanlin
 * Date        : 13-9-6
 * Description : All error code for task, sub class should defines their own error code from CUSTOME_RESULT_CODE
 */
public class TaskResultCode {
    public static final int SUCCESS = 0;

    public static final int UNKNOWN_EXCEPTION = 1;

    public static final int GENERAL_ERROR = 2;

    public static final int NETWORK_CONNECT_ERROR = 3;
    
    public static final int SERVER_CONNECT_ERROR = 4;
    
    public static final int NEED_LOGIN = 5;

    //Custome error codes defined in sub-classes should be started from CUSTOME_RESULT_CODE to avoid replace public error code
    public static final int CUSTOME_RESULT_CODE = 100;

}
